/** @author Vincent
 * 
 */
package Version1;

public class InfoSuccursale {

	private String ipAdress;
	private int port;

	public String getIpAdress() {
		return ipAdress;
	}

	public void setIpAdress(String ipAdress) {
		this.ipAdress = ipAdress;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public InfoSuccursale(String ipAdress, int port) {
		super();
		this.ipAdress = ipAdress;
		this.port = port;
	}
	
	public InfoSuccursale(){
		
	}
	
	@Override
	public boolean equals (Object o) {
		InfoSuccursale x = (InfoSuccursale) o;
	        if (x.ipAdress.equals(this.ipAdress) && x.port == this.port) return true;
	        return false;
	    }

}
